package study.member.sungil.oop2;

public class Card {
	
	static final int KIND_MAX = 4;
	static final int NUM_MAX = 13;
	
	static final int SPADE = 4;
	static final int DIAMOD = 3;
	static final int HEART = 2;
	static final int CLOVER = 1;
	
	int kind; 
	int number;
	
	public Card() {
		this(SPADE,1);
	}
	
	public Card(int kind , int number) {
		this.kind = kind;
		this.number = number;
		System.out.println("kind = " + this.kind);
		System.out.println("number = " + this.number);
	}
	
	public String toString(){
		String kind = "";
		String number= "";
		switch(this.kind){
			case 4:
				kind = "SPADE";
				break;
			case 3:
				kind = "DIAMOD";
				break;
			case 2:
				kind = "HEART";
				break;
			case 1:
				kind = "CLOVER";
				break;
			default:
		}
		switch(this.number){
			case 13:
				number = "K";
				break;
			case 12:
				number = "Q";
				break;
			case 11:
				number = "J";
				break;
			default:
		}
		return "kind : "+ kind + ", number : " + number;
		
	}

}
